package top.whysu.edevice.dto.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 系统菜单实体类
 */
public class CategoryTreeDTO implements Serializable {

    private static final long serialVersionUID = -2589046077697601578L;

    /**
     * 主键
     */
    private BigDecimal id;
    /**
     * 父节点ID
     */
    private BigDecimal parentId;
    /**
     * 前端组件名称
     */
    private String name;
    /**
     * 组件映射名称
     */
    private String component;
    /**
     * 菜单类型
     */
    private Integer type;
    /**
     * 菜单名称
     */
    private String title;
    /**
     * 菜单图标
     */
    private String icon;
    /**
     * 子节点集合
     */
    private List<CategoryTreeDTO> children;
    /**
     * 页面路由地址
     */
    private String path;
    /**
     * 控制当前层级菜单只有一个的时候也要显示上级菜单
     */
    private Boolean alwaysShow = true;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public BigDecimal getParentId() {
        return parentId;
    }

    public void setParentId(BigDecimal parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<CategoryTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<CategoryTreeDTO> children) {
        this.children = children;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Boolean getAlwaysShow() {
        return alwaysShow;
    }

    public void setAlwaysShow(Boolean alwaysShow) {
        this.alwaysShow = alwaysShow;
    }
}